#ifndef SIGNALREPEATER_H
#define SIGNALREPEATER_H
#include <QObject>
#include <string>
#include "createmymsg.h"
using namespace std;
//用于消息转发,Send发送信号连接SignalRepeater的槽函数,槽函数发送对应的槽函数信号,需要获得Send信号的可以连接此槽函数;
//使用场景:多线程转发消息
class SignalRepeater : public QObject{
    Q_OBJECT
public :
    SignalRepeater();

signals:
    //void RepeatSignalDealMessage(string name, string msg);
    void RepeatSignalDealMessage(const TransMsg &msg);
public slots  :
    void SignalDealMessage(const TransMsg &msg);
};

#endif // SIGNALREPEATER_H
